package com.matou.server.biz.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.matou.commons.constants.Resp;
import com.matou.server.api.system.po.TUser;
import com.matou.server.biz.system.service.TUserService;
import com.matou.server.biz.system.mapper.TUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/**
 *
 */
@Service
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements TUserService {

    @Autowired
    private TUserMapper tUserMapper;

    @Override
    public Resp findUserPage(){
        PageHelper.startPage(1, 10);
        List<TUser> tUsers = tUserMapper.selectList(null);
        PageInfo<TUser> pageInfo = new PageInfo<>(tUsers);
        return Resp.success(pageInfo);
    }

}




